<?php
    session_start(); 
    if(!isset($_SESSION['sessData']))
       $_SESSION['sessData'];
?>

<html>
  <head>
    <title>Crazy Eights</title>
  </head>
  <body>
    new Crazy Eights Game
    <?php
      if ($_SESSION['sessData']["loggedin"] == 1)
       {
        ?>
          <form action="start.php?game=crazyeights" method="post">
            number of players <input type="text" name="players">
            number of decks   <input type="text" name="decks">
            <br/><br/>
            <input type="submit" value="Submit">
          
          </form>
        <?php
      
       }
       else
       {
        print "<br><br><font size=5>";
        print "You must be logged in to play!<br><br>\n";
        print "Please login first. \n";
        print "</font>\n";
       }
    ?>
  </body>
</html>


